package cn.knight.basic.mapper;

import cn.knight.basic.query.BaseQuery;


import java.util.List;

public interface BaseMapper<T> {
    List<T> loadAll();

    T loadById(Long id);

    void save(T t);

    void update(T t);

    void remove(Long id);

    // 分页+高级查询
    List<T> queryRows(BaseQuery baseQuery);

    // 查询总条数
    Integer queryCount(BaseQuery baseQuery);

    void patchDel(Long[] ids);
}
